package com.xiyu.service.enums.medicine;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 用药登记用药类型
*/
@Getter
@AllArgsConstructor
public enum HealthMedicineRegisterTypeEnum implements IntArrayValuable {

    /**
    * 计划
    */
    PLAN(1, "计划"),
    /**
    * 临时
    */
    TEMPORARY(2, "临时");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(HealthMedicineRegisterTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(HealthMedicineRegisterTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
